﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TMDT.BusinessObjects
{
    public class HinhAnh
    {
        public Guid IDHinhAnh { get; set;}
        public Guid IDSanPham { get; set; }
        public string URL { get; set; }

        public static HinhAnh Convert(DataRow row)
        {
            HinhAnh hinhAnh = new HinhAnh();
            hinhAnh.IDHinhAnh = new Guid(row["IDHinhAnh"].ToString());
            hinhAnh.IDSanPham = new Guid(row["IDSanPham"].ToString());
            hinhAnh.URL = row["URL"].ToString();

            return hinhAnh;
        }
    }
}
